/**
 * @author		Sergey Suzdalskiy
 * @e-mail:		sergey.suzdalskiy@gmail.com
 */
package ua.kiev.gcore.net.connections {
	import flash.events.EventDispatcher;
	
	import ua.kiev.gcore.net.command.Command;
	import ua.kiev.gcore.net.command.IProtocolParser;
	
	public class Connection extends EventDispatcher {
		
		public static const MOCK:int = 0;
		public static const HTTP:int = 1;
		public static const SOCET:int = 2;	
		
		
		public var id:int;
		public var attributes:ConnectionAttributes;
		public var listener:IProtocolParser;
		
		public function Connection(id:int, attributes:ConnectionAttributes, listener:IProtocolParser):void {
			this.id = id;
			this.attributes = attributes;
			this.listener = listener;
		}
		
		public function init():void {
			
		}
		public function sendCommand(command:Command):void {
			
		}
		public function destroy():void {
			
		}
	}
}